<?php
require_once 'base/code.php';
require_once 'base/parser.php';

//$msg='Проверка русского';
//$base = new CodePhp();
//$base->CodeSetMess($msg);
//$base->CodeEcho();
//$base->CodeEcho();

//Тестирование парсера:

$hostname = "http://ria.ru/incidents/20120323/604126443.html";


$parser = new Parser($hostname);


$sb_begin = "<div";
$sb_id = "<div class=\"infographics_image\"";
$sb_end = "</div>";

$res = $parser->GetDiv($sb_begin, $sb_id, $sb_end);

echo $res;
echo "</br><hr/>" . htmlspecialchars($res);

//echo "<pre>";
//echo htmlspecialchars($parser->fp_str);
//echo "</pre>";


?>
